-- GENERATED SPELL FOR [Sunfury Warp-Master] --


function spell0_18857(pUnit, Event) --@Welding Beam,n/a--
pUnit:FullCastSpellOnTarget(35919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18857', 5000, 1)
end

function Sorts_18857(pUnit, Event)
local choix_sorts_18857 = math.random(0, 0)
if choix_sorts_18857 == 0 then
pUnit:RegisterEvent('spell0_18857', 1, 1)
end
end

function mob18857_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18857', math.random(1500, 3000), 1)
end

function mob18857_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18857_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18857_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18857, 1, 'mob18857_Action')
RegisterUnitEvent(18857, 2, 'mob18857_Leave')
RegisterUnitEvent(18857, 3, 'mob18857_Kill')
RegisterUnitEvent(18857, 4, 'mob18857_Die')
